﻿
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System.WXT.Domain.DTO
{
    /// <summary>
    /// 添加泛型约束
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ApiResult<T>/* where T : class,new()*/
    {
        public int Code { get; set; } = 0;
        public string? Message { get; set; }
        /// <summary>
        /// 返回表数据
        /// </summary>
        public T Data { get; set; }
    }
}
